#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys
from PySide import QtCore, QtGui


# define a function that will be used as a slot

def sayHello():
    print 'Hello world!'


app = QtGui.QApplication(sys.argv)

button = QtGui.QPushButton('Say hello!')

# connect the clicked signal to the sayHello slot

button.clicked.connect(sayHello)
button.show()

sys.exit(app.exec_())
